// import request from "@/http/request";
import axios from "@/http/axios";

// 专业以及阶段天数联动查询
export const subjectAndLevelApi = () =>
  axios({
    url: "/exam/major/queryMajorAndStage",
    method: "GET",
  });

// 生成试卷
export interface GenerateExaminationApiProps {
  examCount: number; // 考题数量,例如30/50/100
  examTypeId: number; // 考试类型编号,预留,可以为空
  levelArrayId: Array<number>; // level 集合,每行一个值
  stuId: number; // 学生编号,预留字段
  subjectId: number; // 学科方向编号,约定:1-java 2-web 3-测试 4-安全 5-UI
}
export const generateExaminationApi = (params: GenerateExaminationApiProps) =>
  axios({
    url: "/exam/questionBank/generate",
    method: "POST",
    params,
  });
